package com.miyake.dsp.converter;

import com.miyake.dsp.ComplexArray;
import com.miyake.dsp.Processor;
import com.miyake.dsp.ScilabExecute;

public class AbsoluteImplScilab implements Processor {
	private ComplexArray source;
	
	@Override
	public void setSource(ComplexArray source) {
		this.source = source;
	}

	@Override
	public ComplexArray getSource() {
		return this.source;
	}

	@Override
	public ComplexArray getProcessed() {
		return ScilabExecute.execute("ret=abs(data1);", source, "ret");
	}

	@Override
	public Object getSetting() {
		return new AbsoluteSetting();
	}

}
